Platform Explorer / Nuxeo Platform 2021.7

Contribution org.nuxeo.platform.audit.contentView.contrib--contentViews

This contribution is part of XML component org.nuxeo.platform.audit.contentView.contrib inside nuxeo-platform-audit-client-2021.7.jar /OSGI-INF/content-view-contrib.xml

Extension Point

Extension point contentViews of component ContentViewService.

Registration Order

1
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <contentView name="DOCUMENT_HISTORY">
    
          <title>label.contentview.document.history</title>
          <translateTitle>true</translateTitle>
          <showTitle>true</showTitle>
    
          <pageProvider name="DOCUMENT_HISTORY_PROVIDER">
            <property name="coreSession">#{documentManager}</property>
            <property name="generateUIComments">true</property>
            <parameter>#{currentDocument.id}</parameter>
          </pageProvider>
    
          <searchLayout filterDisplayType="quick" name="basicauditsearch"/>
          <showFilterForm>true</showFilterForm>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentCreated</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheSize>10</cacheSize>
          <cacheKey>#{currentDocument.repositoryName}_#{currentDocument.id}</cacheKey>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="history_listing" showCSVExport="true" showPDFExport="false" title="history_listing" translateTitle="true"/>
          </resultLayouts>
    
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <contentView name="DOCUMENT_HISTORY">

      <title>label.contentview.document.history</title>
      <translateTitle>true</translateTitle>
      <showTitle>true</showTitle>

      <pageProvider name="DOCUMENT_HISTORY_PROVIDER">
        <property name="coreSession">#{documentManager}</property>
        <property name="generateUIComments">true</property>
        <parameter>#{currentDocument.id}</parameter>
      </pageProvider>

      <searchLayout filterDisplayType="quick" name="basicauditsearch"/>
      <showFilterForm>true</showFilterForm>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentCreated</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheSize>10</cacheSize>
      <cacheKey>#{currentDocument.repositoryName}_#{currentDocument.id}</cacheKey>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="history_listing" showCSVExport="true" showPDFExport="false" title="history_listing" translateTitle="true"/>
      </resultLayouts>

    </contentView>

  </extension>